<?php
include_once '../library/config.php';
include_once '../library/popuphelper.php';
include_once '../model/stafflist.php';
include_once '../model/userlist.php';
StaffList::IsLogin();
$entity=new UserList();
$entity->request();
$entity->select()->where('myid=?',array($entity['id']))->get_first_rows();
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>后台管理系统</title>
        <link href="/css/reset.css" rel="stylesheet" type="text/css" />
        <link href="/css/layout.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
            img{ max-width: 300px;}
        </style>
    </head>
    <body>
        <form method="post"  class="labelright nomargin">
            <div class="mainwrapassist notitletoolbar">
                <table class="wp100 cellbor">
                    <tr>
                        <td class="tr w60">姓名：</td>
                        <td><?php echo $entity['realname'];?></td>
                    </tr>
                    <tr>
                        <td class="tr">性别：</td>
                        <td><?php echo $entity['sex']=='1'?'男':'女';?></td>
                    </tr>
                    <tr>
                        <td class="tr">学校：</td>
                        <td><?php echo $entity['xuexiao'];?></td>
                    </tr>
                    <tr>
                        <td class="tr">学号：</td>
                        <td><?php echo $entity['xuehao'];?></td>
                    </tr>
                    <tr>
                        <td class="tr">学生证：</td>
                        <td><a href="/upfile/<?php echo $entity['xueshengzheng'];?>" target="_blank"><img src="/upfile/<?php echo $entity['xueshengzheng'];?>"/></a></td>
                    </tr>
                </table>
            </div>
        </form>
        <?php include_once '../inc/js.html';?>
    </body>
</html>